Skip to content

Fix splitter round-robin distribution and remove dead code#44

Merged
CoderJoeW merged 4 commits intomainfrom
fix/splitter-round-robin-and-cleanup
Mar 27, 2026
Merged

Fix splitter round-robin distribution and remove dead code#44
CoderJoeW merged 4 commits intomainfrom
fix/splitter-round-robin-and-cleanup

Conversation

@CoderJoeW
Copy link
Copy Markdown
Owner

Summary

  • Splitter round-robin: Both PowerSplitter and FluidSplitter now cycle through output faces instead of always favoring the same direction. Each tracks a nextOutputIndex that advances past the last successful push.
  • SmallSolarPanel logging: Removed the nighttime log message that fired every 10 seconds per panel, creating significant noise.
  • Dead code removal: Deleted unused PowerBlockData and FluidBlockData classes (never called from production code — BlockPersistence handles serialization directly). Also removed redundant locationKey companion delegation from all three registry subclasses.

Splitters previously always iterated output faces in a fixed order,
causing resources to always favor the same direction. Both PowerSplitter
and FluidSplitter now track a nextOutputIndex that advances past the
last successful push, cycling through output faces evenly over time.
The panel logged "is not generating power because it is not daytime"
every 10 seconds per panel during night, creating significant log noise
with no diagnostic value.
These data classes were never used in production code — BlockPersistence
handles all serialization directly. Also removes redundant locationKey
companion delegation from all three registry subclasses.
@CoderJoeW CoderJoeW merged commit 2d5301f into main Mar 27, 2026
3 checks passed
@CoderJoeW CoderJoeW deleted the fix/splitter-round-robin-and-cleanup branch March 27, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant